/**
 *
 * Copyright 2013 by Hai Nguyen
 *
 */
package com.avj.g17.chat.client;

import java.io.IOException;
import java.net.Socket;
import java.net.UnknownHostException;

/**
 * IClientSocket
 *
 * @author Hai Nguyen <hain186@gmail.com>
 * @version $Id: IClientSocket Jun 9, 2013 3:04:18 PM hainn $
 */
public class IClientSocket {

    public static void main(String[] args) throws UnknownHostException, IOException {
        String host = "192.168.1.13";
        int port = 4321;

        Socket s = new Socket(host, port);					//	CONNECT	TO THE SERVER

        System.out.println("You connected to " + host);		//	IF CONNECTED THEN PRINT IT OUT

        ClientChat client = new ClientChat(s);						//	START NEW CLIENT OBJECT

        Thread t = new Thread(client);						//	INITIATE NEW THREAD
        t.start();

    }
}
